package com.example.sample.activity;

import android.os.Bundle;
import android.widget.ImageView;

import com.example.app.BaseActivity;
import com.example.sample.R;

import net.liteheaven.xblib.common.image.ImageLoadUtil;

/**
 * Created by LiangYu on 2017/6/29.
 */
public class ImageLoaderActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image_loader);
        ImageView iv = (ImageView)findViewById(R.id.iv);
        ImageLoadUtil.initImageLoader(this);
        ImageLoadUtil.display("https://weixin.91160.com/static/v2/img/app/qrcode_for_gh_c5bfcf55d36d_430.jpg", iv, R.drawable.ic_launcher);
    }
}
